save To Archive
Saves the given blocks to an archive. Note: All given block handles must be valid, otherwise this call returns an error.
Performs an internal update to lay out pending changes before the save.
While a font loads, its text is laid out with another font. When the text's size follows its content, blocks archived before the font arrives can differ from blocks archived after it. To compare two archives, first call engine.block.forceLoadResources(blocks), then compare the blocks.blocks files inside them. Each archive entry stores the time of the save.
Cancelling the coroutine stops the save.
Return
the archive in zip format. From Android 9 a buffer of 1 MiB or more is a direct buffer over a temp file of the engine, without a copy and without a backing array: read it with get, not array. The file goes once the buffer and every view of it are collected.
Parameters
the blocks to save.